WPForms\Integrations\Square\Admin\Connect C

Total Complexity 106
Dependencies 12
Dependents 4
Total lines 854
Lines of code 415
Logical lines of code 213
Comment lines 250
Methods 27
Properties 1

Methods 27

Method Rating Maintainability Complexity Lines of code
refresh_connection_schedule()
A
54 9 23
refresh_connection_manual()
A
51 8 25
handle_actions()
A
55 8 21
active_locations_filter()
S
53 7 23
handle_disconnect()
S
56 6 18
validate_scopes()
S
59 6 16
maybe_save_connection()
S
51 5 29
fetch_refresh_connection()
S
51 5 25
schedule_refresh()
S
55 5 19
get_connected_account()
S
58 5 16
handle_connected()
S
55 4 20
fetch_new_connection()
S
56 4 18
fetch_locations()
S
59 4 15
try_refresh_connection()
S
60 4 13
set_location()
S
62 4 11
prepare_locations()
S
58 3 17
fetch_account()
S
62 3 12
get_server_url()
S
71 3 6
get_scopes()
S
56 1 21
reset_location()
S
67 2 8
get_connected_locations()
S
67 2 8
get_connected_account_id()
S
71 2 5
unschedule_refresh()
S
65 2 10
get_connect_url()
S
60 1 13
get_disconnect_url()
S
62 1 12
hooks()
S
69 1 6
init()
S
74 1 5